<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品管理</title> <#include "/WEB-INF/content/module-index.html">
<script type="text/javascript">
function downloads(){
	var leftCreateTime=$("#leftCreateTime").datetimebox("getValue");
	var rightCreateTime=$("#rightCreateTime").datetimebox("getValue");
	var params="?leftCreateTime="+leftCreateTime+"&rightCreateTime="+rightCreateTime;
	window.location.href=moduleUrl.substring(0,moduleUrl.lastIndexOf("/"))+"/download"+params;
}
$(function(){
	$("#search").click(function(){
		var leftCreateTime=$("#leftCreateTime").datetimebox("getValue");
		var rightCreateTime=$("#rightCreateTime").datetimebox("getValue");
		$("#grid").datagrid("reload",{"leftCreateTime":leftCreateTime,"rightCreateTime":rightCreateTime});
	});
})

</script>
<style>
a.btn-border{
	border: 1px solid #ccc;
}
</style>
</head>
<body>
<body class="easyui-layout">
	<div region="center" style="padding: 5px; background:#eee;">
		<div id="toolbar">
			时间:<input id="leftCreateTime" class="easyui-datebox"/>至:<input id="rightCreateTime" class="easyui-datebox"/>
			<a id="search" class="easyui-linkbutton" icon="icon-search" style="border: 1px solid #ccc" plain="true">搜索</a>
			<a class="easyui-linkbutton" onclick="javascript:downloads();" icon="icon-add" style="border: 1px solid #ccc" plain="true">导出</a>			
		</div>
		<table id="grid" class="easyui-datagrid" url="query" align="center" idField="oid" rownumbers="true" striped="true" fitColumns="true" fit="true" pagination="true" singleSelect="true" toolbar="#toolbar">
			<thead>
				<tr>
					<th field="time" width="20">日期</th>
					<th field="androidNew" width="20">Android新增用户</th>
					<th field="iosNew" width="20">ios新增用户</th>
					<th field="dayUser" width="5">日活跃用户</th>
					<th field="monthUser" width="5">月活跃用户</th>
					<th field="androidTotal" width="10">Android累计用户</th>
					<th field="iosTotal" width="10">IOS累计用户</th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</body>

</html>